from zyuekao.Page import Page
from selenium.webdriver.common.by import By

class Page2(Page):
    #点击收信页面
    shouxin_click=(By.XPATH,'/html/body/div[1]/nav/div[1]/ul/li[1]/span[2]')
    def click_shouxin(self):
        self.click(self.shouxin_click)
    #点击删除按钮
    shanchu_button=(By.XPATH,'/html/body/div[2]/div[1]/div[2]/div/div/div/div[4]/div[2]/div/div[3]/b[1]')
    def button_shanchu(self):
        self.click(self.shanchu_button)

    #断言2
    dy2_dy=(By.XPATH,'//*[@id="_mail_link_123_1030"]')
    def dy_dy2(self):
        self.find_element(self.dy2_dy).text()

